package service;

import java.util.ArrayList;

import model.Work;
import dao.workdao.WorkDao;
import dao.workdao.WorkDaoImpl;

public class queryWorkService {
    public ArrayList<Work> queryAllWork() throws IllegalAccessException, ClassNotFoundException, Exception{
    	WorkDao workdao=new WorkDaoImpl();
    	ArrayList<Work> WorkList=workdao.queryAllWork();
    	return WorkList;
    }
	public Work querySingleWork(int work_id) throws IllegalAccessException, ClassNotFoundException, Exception {
		WorkDao workdao=new WorkDaoImpl();
		Work work=workdao.querySingleWork(work_id);
		return work;
	}
}
